﻿Imports System.Web.Optimization

Public Module BundleConfig
    ' For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
    Public Sub RegisterBundles(ByVal bundles As BundleCollection)

        bundles.IgnoreList.Clear()
        bundles.IgnoreList.Ignore("*.intellisense.js")
        bundles.IgnoreList.Ignore("*-vsdoc.js")
        bundles.IgnoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled)

        bundles.Add(New ScriptBundle("~/bundles/jquery").Include(
                    "~/Scripts/Common/jquery-{version}.js"))

        bundles.Add(New ScriptBundle("~/bundles/jqueryval").Include(
                    "~/Scripts/Common/jquery.validate*"))

        ' Use the development version of Modernizr to develop with and learn from. Then, when you're
        ' ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
        bundles.Add(New ScriptBundle("~/bundles/modernizr").Include(
                    "~/Scripts/Common/modernizr-*"))

        bundles.Add(New ScriptBundle("~/bundles/bootstrap").Include(
                  "~/Scripts/Common/bootstrap.js",
                  "~/Scripts/Common/respond.js"))

        bundles.Add(New StyleBundle("~/Content/css").Include(
                  "~/Content/bootstrap.css",
                  "~/Content/site.css"))

        bundles.Add(New ScriptBundle("~/bundles/Product").Include(
                    "~/Scripts/QLKS/Product.js"))

        bundles.Add(New ScriptBundle("~/bundles/Movie").Include(
                    "~/Scripts/QLKS/Movie.js"))
        bundles.Add(New ScriptBundle("~/bundles/MainJS").Include(
                    "~/Scripts/QLKS/MainJS.js"))
        bundles.Add(New StyleBundle("~/Content/Product_Update").Include(
                  "~/Content/QLKS/Product_Update.css"))
    End Sub
End Module

